home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 22 / Amiga Format AFCD22 (Jan 1998, Issue 106).iso / -seriously_amiga- / shareware / programming / other / gui4cli / tools / rexx / g4c.rexx
OS/2 REXX Batch file  |  1997-11-17  |  406b  |  22 lines

  1. /*  Rexx script to talk to Gui4Cli  */
  2. /*  Run this script from a shell by writting RX G4C */
  3. /*  You can then write commands to Gui4Cli - <Ctrl-C> exits  */
  4.  
  5. address 'Gui4Cli'
  6. options results
  7.  
  8. signal on BREAK_C
  9.  
  10. do forever
  11.   say "G4C>"
  12.   pull command
  13.   interpret command
  14.   if RC = 0 then say "OK"
  15.   else say "Command returned: " RC
  16.   if result ~= "RESULT" then say result
  17.   drop result
  18. end
  19.  
  20. BREAK_C:
  21. exit
  22.